import request from '@/utils/request'

//客户类型分页查询
export function TypePagingQuery(currentPage, count) {
  return request({
    url: `/customer/category/page/${currentPage}/${count}`,
    method: 'post',
  })
}
//客户类型删除
export function customerDel(categoryId) {
  return request({
    url: `/customer/category/del/${categoryId}`,
    method: 'post',
    data:categoryId
  })
}
//客户类型新增
export function customerAdd(data) {
  return request({
    url: '/customer/category/add',
    method: 'post',
    data
  })
}
//客户类型编辑
export function customerEdit(data) {
  return request({
    url: '/customer/category/edit',
    method: 'post',
    data
  })
}